Utility.distance Method

Find the distance between 2 rectangles.
 

Parameters

rect1

Type: Rectangle
The first rectangle.
rect2

Type: Rectangle
The second rectangle.